import { catelist } from '../../request/api';

export default {
    namespaced: true,
    state: {
        cateList: []
    },
    getters: {
    },
    mutations: {
        changeCateList(state, data) {
            state.cateList = data;
        },

    },
    actions: {
        getCateList(context, params) {
            catelist(params).then(res => {
                if (res.code == 200) {
                    context.commit('changeCateList', res.list);
                }
            })
        },
    },
    modules: {
    }
}